<template>
    <el-form ref="form" :model="form" label-width="100px">
          <el-form-item label="输入车位号">
            <el-input v-model.lazy="form.num"></el-input>
        </el-form-item>
          <el-form-item label="输入出租周期">
            <el-input v-model.lazy="form.day"></el-input>
        </el-form-item>
          <el-form-item label="输入产权信息">
            <el-input v-model.lazy="form.property"></el-input>
        </el-form-item>
          <el-form-item label="输入出租价格">
            <el-input v-model.lazy="form.price"></el-input>
        </el-form-item>
       
        <el-form-item label="输入地址">
            <el-input type="textarea" v-model.lazy="form.desc"></el-input>
        </el-form-item>
        <el-form-item>
            <router-link to="parkingsListById" tag='span'>
            <el-button type="primary" @click="addParkings" >立即添加</el-button>
            </router-link>
            <el-button>取消</el-button>
        </el-form-item>
    </el-form>
</template>

<script>
import { createNamespacedHelpers } from "vuex";
const {
    mapState: parkingsMapState,
    mapMutations: parkingsMapMutations,
    mapActions: parkingsMapActions,
} = createNamespacedHelpers("parkingsById");

export default {
    computed:{
  ...parkingsMapState(["form","lessorsId"]),
    },
  
    methods: {
    ...parkingsMapActions(["addParkings"])
    }
};
</script>

<style>
</style>